<%--
  Created by IntelliJ IDEA.
  User: 伟
  Date: 2019/6/3
  Time: 11:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <head>
        <title>Title</title>
        <script src="../../js/jquery-3.3.1.min.js" charset="utf-8"></script>
        <script src="../../js/cookie/jquery.cookie.js" charset="utf-8"></script>
        <script src="../../layui-v2.2.5/layui/layui.js" charset="utf-8"></script>
        <link rel="stylesheet" href="../../layui-v2.2.5/layui/css/layui.css" media="all">
    </head>
</head>
<body>
<br><br><br>
<button class="layui-btn" id="add" >修改</button>
<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right;margin-right: 100px"  href="javascript:location.replace(location.href);" title="刷新">
    <i class="layui-icon" style="line-height:30px">ဂ</i></a>

<div class="layui-form">
    <form class="layui-form" action="/shop/weChatconFiguration">

        <table class="layui-table" page="true">
            <tbody>
            <input id="id" name="id" value="${record.id}" type="hidden">
            <div class="layui-form-item">
                <label class="layui-form-label">机构ID</label>
                <div class="layui-input-inline">
                    <input type="tel" name="shopId" layui-verify="required|shopId"
                           value="${record.shopId}"  autocomplete="off" class="layui-input" >
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">微信appID</label>
                <div class="layui-input-inline">
                    <input type="tel" name="appId" required  lay-verify="required|appId"
                            autocomplete="off" class="layui-input" value="${record.appId}">
                </div>
            </div>&nbsp;
            <div class="layui-form-item">
                <label class="layui-form-label">微信</label>
                <div class="layui-input-inline">
                    <input type="tel" name="appSecret" required  lay-verify="required|appSecret"
                            autocomplete="off" class="layui-input" value="${record.appSecret}">
                </div>
            </div><br>
            <div class="layui-form-item">
                <label class="layui-form-label">商户号</label>
                <div class="layui-input-inline">
                    <input type="tel" name="mchId" required  lay-verify="required|mchId"
                            autocomplete="off" class="layui-input" value="${record.mchId}">
                </div>
            </div>&nbsp;
            <div class="layui-form-item">
                <label class="layui-form-label">支付Key</label>
                <div class="layui-input-inline">
                    <input type="tel" name="payKey" required  lay-verify="required|payKey"
                            autocomplete="off" class="layui-input" value="${record.payKey}">
                </div>
            </div><br>
            <div class="layui-form-item">
                <label class="layui-form-label">原始ID</label>
                <div class="layui-input-inline">
                    <input type="tel" name="originalId" required  lay-verify="required|originalId"
                            autocomplete="off" class="layui-input" value="${record.originalId}">
                </div>
            </div>&nbsp;
            <div class="layui-form-item">
                <label class="layui-form-label">业务域名</label>
                <div class="layui-input-inline">
                    <input type="tel" name="domain" required  lay-verify="required|domain"
                            autocomplete="off" class="layui-input" value="${record.domain}">
                </div>
            </div><br>
            <div class="layui-form-item">
                <label class="layui-form-label">公众号名称</label>
                <div class="layui-input-inline">
                    <input type="tel" name="name" required  lay-verify="required|name"
                           autocomplete="off" class="layui-input" value="${record.name}">
                </div>
            </div>&nbsp;
            <div class="layui-form-item">
                <label class="layui-form-label">创建时间</label>
                <div class="layui-input-inline">
                    <input type="tel" name="createTime" required  lay-verify="required|createTime"
                            autocomplete="off" class="layui-input" value="${record.createTime}">
                </div>
            </div>&nbsp;
            <div class="layui-form-item">
                <label class="layui-form-label">接口</label>
                <div class="layui-input-inline">
                    <input type="tel" name="type" required  lay-verify="required|type"
                            autocomplete="off" class="layui-input" value="${record.type}">
                </div>
            </div>
            </tbody>
        </table>
    </form>
    <div style="margin-top: 20rem"></div>
</div>
<script>
    layui.use('layer', function(){
        var layer = layui.layer;
        $(document).on('click','#add',function(){
            var id='${record.id}';
            layer.open({
                type: 2,
                area: ['80%', '80%'],
                title: '人员管理',
                offset: '20px',
                shadeClose:true,
                content: '/shop/addWEChat?id='+id,
                end:function () {
                    console.log("页面要刷新");
                    window.location.reload();
                }
            });
        });
    });

</script>
</body>
</html>